package com.se.frontline.gameplay;

import org.andengine.entity.Entity;
import org.andengine.entity.primitive.Rectangle;
import org.andengine.entity.scene.IOnSceneTouchListener;
import org.andengine.entity.scene.Scene;
import org.andengine.input.touch.TouchEvent;

import com.se.frontline.gameplay.levels.Level;
import com.se.frontline.gameplay.units.Unit1;
import com.se.frontline.layers.FrontlineHUD;
import com.se.frontline.managers.ResourceManager;

public class GameGround extends Entity {

	private static final float GAME_GROUND_START = (float) (ResourceManager
			.getInstance().cameraHeight * 0.35);

	Rectangle ground;

	public GameGround(Level CurrentLevel) {
		this.setX(0);
		this.setY(GAME_GROUND_START);
		Rectangle ground = new Rectangle(0, 0,
				ResourceManager.getInstance().cameraWidth * 2,
				(float) (ResourceManager.getInstance().cameraHeight * 0.3),
				ResourceManager.getInstance().getEngine()
						.getVertexBufferObjectManager());
		ground.setColor(0.9f, 0.6f, 0.3f);
		this.attachChild(ground);
	}
}
